package com.lvchuang.mapper;

import com.lvchuang.model.NewsCategory;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface NewsCategoryMapper {
    @Select("select * from news_category where category_id=#{category_id}")
    NewsCategory SelectByNewsCategoryId(Integer category_id);

    @Select("select * from news_category where category_name=#{category_name}")
    NewsCategory selectByName(String selectByName);
}
